function Super(_superName) {
  this.superName = _superName
}
Super.prototype.sayHello = function () {
  console.log(`Hello This is ${this.superName}`);
}

function Sub(_subName, ...rest) {
  this.subName = _subName
  Super.apply(this, rest)
}

Sub.prototype.sayHello = function () {
  console.log(`Hello This is ${this.subName}`);
}

Sub.prototype = Object.create(Super.prototype)
Sub.prototype.constructor = Sub

let xm = new Sub('xiaoming', 'daming')
